function verifyDate(date) {
    var flag=false;
    $.ajax({
        url:"http://localhost:8081/cost/verifyDate/"+date,
        type:"get",
        async:false,
        statusCode:{
            200:function (data) {
                flag=data;
            }
        }
    });
    return flag;
}